package cn.explink.dop.entity.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import cn.explink.dop.enums.pub.EnableEnum;
import cn.explink.eap.core.common.entity.IdEntity;

/**
 * 餐厅管理信息实体
 *
 * @author firefly 2015-2-26 14:39
 *
 */

@Entity
@Table(name = "bd_restaurant")
public class RestaurantVO extends IdEntity implements java.io.Serializable {

	private static final long serialVersionUID = -1651018391208761485L;
	/** 餐厅名称 */
	private String resName;
	/** 备注 **/
	private String resDesc;
	/** 假删除 */
	private int resEnable;

	@Column(name = "res_name", nullable = true, length = 200)
	public String getResName() {
		return this.resName;
	}

	public void setResName(String resName) {
		this.resName = resName;
	}

	@Column(name = "res_enable", nullable = true, length = 2)
	public int getResEnable() {
		return this.resEnable;
	}

	public void setResEnable(int resEnable) {
		this.resEnable = resEnable;
	}

	@Transient
	public String getResEnableText() {
		if (EnableEnum.Enable.getValue() == this.resEnable) {
			return EnableEnum.Enable.getText();
		}
		return EnableEnum.Unable.getText();
	}

	@Column(name = "res_Desc", length = 500)
	public String getResDesc() {
		return this.resDesc;
	}

	public void setResDesc(String resDesc) {
		this.resDesc = resDesc;
	}

	public static long getSerialversionuid() {
		return RestaurantVO.serialVersionUID;
	}

}
